package com.destin.basic.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author: Destin
 * @date: 2022-02-23
 */
@Data
@ApiModel("用户添加或修改对象")
public class UserModifyDTO {

    @ApiModelProperty("用户名称")
    @NotBlank(message = "名称不能为空")
    private String username;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty("邮箱")
    @NotBlank(message = "邮箱不能为空")
    private String email;

}
